import request from '@/utils/request'

import { objectToFormData } from '@/utils/form'

export function findSceneLayerSrcList(data) {
  return request({
    url: '/51world/scene/layer/src/findList',
    method: 'get',
    params:data
  })
}

export function getUnSelectedList(data) {
  return request({
    url: '/51world/scene/layer/src/getUnSelectedList',
    method: 'get',
    params:data
  })
}

export function saveSceneLayerSrc(data) {
  return request({
    url: '/51world/scene/layer/src/saveLayerSrc',
    method: 'post',
    data
  })
}

export function deleteSceneLayerSrc(data) {
  return request({
    url: '/51world/scene/layer/src/delete',
    method: 'get',
    params:data
  })
}

export function batchDeleteSceneLayerSrc(data) {
  return request({
    url: '/51world/scene/layer/src/batchDelete',
    method: 'get',
    params:data
  })
}

/**
 * 获取场景图层资源
 * @param {Object} data
 */
export function getSceneLayerSrcById(data) {
  return request({
    url: '/51world/scene/layer/src/getLayerSrcById',
    method: 'get',
    params:data
  })
}
